Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / GetOffsets Method / GetOffsets(IPdfDict,PdfName,Nullable<Offsets>) Method
The current dictionary.
The key of the value to get.
The default value.

In This Topic
    GetOffsets(IPdfDict,PdfName,Nullable<Offsets>) Method
    In This Topic
    Gets the GrapeCity.Documents.Common.Offsets associated with the specified key (in a PDF an GrapeCity.Documents.Common.Offsets should be represented as an array of 4 floats).

    Gets defValue if the value does not exist or cannot be converted to an GrapeCity.Documents.Common.Offsets.

    Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value cannot be converted to an GrapeCity.Documents.Common.Offsets.
    Syntax
    'Declaration
     
    Public Overloads Shared Function GetOffsets( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByVal defValue As System.Nullable(Of Offsets) _
    ) As System.Nullable(Of Offsets)
    public static System.Nullable<Offsets> GetOffsets( 
       IPdfDict dict,
       PdfName key,
       System.Nullable<Offsets> defValue
    )

    Parameters

    dict
    The current dictionary.
    key
    The key of the value to get.
    defValue
    The default value.

    Return Value

    The value associated with the specified key.
    See Also